#include "sql/sql_driver.hpp"
#include "pg_driver.hpp"

static ISqlDriver* CreatePostgreSQLDriver()
{
    return new PostgresSQLDriver{};
}

static DriverFactory s_factory{ "PostgreSQL", &CreatePostgreSQLDriver };

extern "C"
#if defined(_WIN32)
__declspec(dllexport)
#elif defined(__unix__)
__attribute__((visibility("default")))
#endif
const DriverFactory * GetDriverFactory()
{
    return &s_factory;
}
